.class Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$DeleteFootprintsThread;
.super Ljava/lang/Thread;
.source "DeleteFootprintsActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "DeleteFootprintsThread"
.end annotation


# instance fields
.field data:[Lcom/htc/android/footprints/vo/Footprint;

.field final synthetic this$0:Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;


# direct methods
.method public constructor <init>(Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;[Lcom/htc/android/footprints/vo/Footprint;)V
    .locals 0
    .parameter
    .parameter "deleteData"

    .prologue
    .line 452
    iput-object p1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$DeleteFootprintsThread;->this$0:Lcom/htc/android/footprints/activity/DeleteFootprintsActivity;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    .line 453
    iput-object p2, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$DeleteFootprintsThread;->data:[Lcom/htc/android/footprints/vo/Footprint;

    .line 454
    return-void
.end method


# virtual methods
.method public run()V
    .locals 8

    .prologue
    .line 462
    const/4 v1, 0x0

    .line 463
    .local v1, deleteFile:Ljava/io/File;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$DeleteFootprintsThread;->data:[Lcom/htc/android/footprints/vo/Footprint;

    .local v0, arr$:[Lcom/htc/android/footprints/vo/Footprint;
    array-length v5, v0

    .local v5, len$:I
    const/4 v4, 0x0

    .local v4, i$:I
    :goto_0
    if-ge v4, v5, :cond_2

    aget-object v3, v0, v4

    .line 465
    .local v3, f:Lcom/htc/android/footprints/vo/Footprint;
    iget-object v6, v3, Lcom/htc/android/footprints/vo/Footprint;->mAudioPath:Ljava/lang/String;

    invoke-static {v6}, Lcom/htc/android/footprints/utils/FootprintUtils;->checkAudioData(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_0

    .line 466
    new-instance v1, Ljava/io/File;

    .end local v1           #deleteFile:Ljava/io/File;
    iget-object v6, v3, Lcom/htc/android/footprints/vo/Footprint;->mAudioPath:Ljava/lang/String;

    invoke-direct {v1, v6}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 467
    .restart local v1       #deleteFile:Ljava/io/File;
    invoke-virtual {v1}, Ljava/io/File;->delete()Z

    .line 469
    :cond_0
    iget-object v6, v3, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    invoke-static {v6}, Lcom/htc/android/footprints/utils/FootprintUtils;->checkPhotoData(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 470
    new-instance v1, Ljava/io/File;

    .end local v1           #deleteFile:Ljava/io/File;
    iget-object v6, v3, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    invoke-direct {v1, v6}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 471
    .restart local v1       #deleteFile:Ljava/io/File;
    invoke-virtual {v1}, Ljava/io/File;->delete()Z

    .line 474
    :cond_1
    const/4 v1, 0x0

    .line 476
    const-wide/16 v6, 0xa

    :try_start_0
    invoke-static {v6, v7}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    .line 463
    :goto_1
    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 477
    :catch_0
    move-exception v2

    .line 478
    .local v2, e:Ljava/lang/InterruptedException;
    invoke-virtual {v2}, Ljava/lang/InterruptedException;->printStackTrace()V

    goto :goto_1

    .line 481
    .end local v2           #e:Ljava/lang/InterruptedException;
    .end local v3           #f:Lcom/htc/android/footprints/vo/Footprint;
    :cond_2
    const/4 v1, 0x0

    .line 482
    return-void
.end method

.method setFootprints([Lcom/htc/android/footprints/vo/Footprint;)V
    .locals 0
    .parameter "deleteData"

    .prologue
    .line 457
    iput-object p1, p0, Lcom/htc/android/footprints/activity/DeleteFootprintsActivity$DeleteFootprintsThread;->data:[Lcom/htc/android/footprints/vo/Footprint;

    .line 458
    return-void
.end method
